//
//  AFNetWorkManager.swift
//  BBLinkiOSProject
//
//  Created by liuzhu on 2018/11/13.
//  Copyright © 2018 liuzhu. All rights reserved.
//

import UIKit
import AFNetworking
class AFNetWorkManager: AFHTTPSessionManager {
    static let tools:AFNetWorkManager = {
        let url = URL(string: "http://bbcloud.hellomeng.com/")
        //let url = URL(string: "http://localhost:8081/")
        let t = AFNetWorkManager(baseURL: url)
        t.responseSerializer.acceptableContentTypes = Set(arrayLiteral: "application/json","text/json","text/javascript","text/plain","text/html")
        return t
    }()
    
    //获取单例
    class func shareNetworkTools()->AFNetWorkManager{
        return tools
    }
}
